Also update smart separators if the visibility of a menuitem with a
authorMatthias Clasen <mclasen@redhat.com>
Fri, 8 Oct 2004 05:00:34 +0000 (05:00 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 8 Oct 2004 05:00:34 +0000 (05:00 +0000)
2004-10-08  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkuimanager.c (update_node): Also update smart separators
if the visibility of a  menuitem with a submenu changes.  (#153791,
Christian Persch)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkuimanager.c

index d66dafa6951ddd5feb70d2bfa6caa8f693a8f78e..67d3d1440543653f4338adba463bc2a7148d6711 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-10-08  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkuimanager.c (update_node): Also update smart separators 
+       if the visibility of a  menuitem with a submenu changes.  (#153791,
+       Christian Persch)
+
 2004-10-08  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkentry.h:
index d66dafa6951ddd5feb70d2bfa6caa8f693a8f78e..67d3d1440543653f4338adba463bc2a7148d6711 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-08  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkuimanager.c (update_node): Also update smart separators 
+       if the visibility of a  menuitem with a submenu changes.  (#153791,
+       Christian Persch)
+
 2004-10-08  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkentry.h:
index d66dafa6951ddd5feb70d2bfa6caa8f693a8f78e..67d3d1440543653f4338adba463bc2a7148d6711 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-08  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkuimanager.c (update_node): Also update smart separators 
+       if the visibility of a  menuitem with a submenu changes.  (#153791,
+       Christian Persch)
+
 2004-10-08  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkentry.h:
index d66dafa6951ddd5feb70d2bfa6caa8f693a8f78e..67d3d1440543653f4338adba463bc2a7148d6711 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-08  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkuimanager.c (update_node): Also update smart separators 
+       if the visibility of a  menuitem with a submenu changes.  (#153791,
+       Christian Persch)
+
 2004-10-08  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkentry.h:
index a42ce5e26f91c1ec8d65ca04cda623c37923e0a2..ddaa38a8fe96c0f7a75ebf690e6ddd97063b6a33 100644 (file)
@@ -2196,6 +2196,8 @@ update_node (GtkUIManager *self,
                    gtk_menu_shell_append (GTK_MENU_SHELL (menu), filler);
                    gtk_menu_item_set_submenu (GTK_MENU_ITEM (info->proxy), menu);
                    gtk_menu_shell_insert (GTK_MENU_SHELL (menushell), info->proxy, pos);
+                   g_signal_connect (info->proxy, "notify::visible",
+                                     G_CALLBACK (update_smart_separators), 0);
                  }
              }
            else
@@ -2517,7 +2519,7 @@ update_node (GtkUIManager *self,
     {
       if (info->type == NODE_TYPE_MENU) 
        update_smart_separators (gtk_menu_item_get_submenu (GTK_MENU_ITEM (info->proxy)));
-      else if (info->type == NODE_TYPE_TOOLBAR)
+      else if (info->type == NODE_TYPE_TOOLBAR || info->type == NODE_TYPE_POPUP) 
        update_smart_separators (info->proxy);
     }